#!/usr/bin/pwsh
$MAKE = "make"
if (($PSVersionTable).Platform -eq "Win32NT")
{
	$MAKE = "mingw32-make"
}
if ($args.Count -eq 0)
{
    &$MAKE -f Makefile.mk --directory=$PSScriptRoot
}
foreach ($mod in $args)
{
    &$MAKE -f Makefile.mk  --directory=$PSScriptRoot $mod
    if (-not $?)
    {
        return $False
    }
}